(function () {
    "use strict";

    roundNumber(22.7);
    console.log('---');

    roundNumber(12.3);
    console.log('---');

    roundNumber(58.7);
    console.log('---');

    function roundNumber(value) {
        console.log(Math.round(value));
        console.log(Math.floor(value));
        console.log(value.toFixed(0));
    }
}());